
Example 1:

1) Make sure all files in folder '0 cfc' are in the matlab path or that '0 cfc' is the current folder.

2) Load the file tseries.mat into the workspace. It contains an (n x 1) raw signal named tseries.

3) Run in the command:

cfc_matrix=main_cfc(tseries,[],[4 10],[20 40],[2,3]);


NOTES:

The syntax of this function is:

  >> cfc_matrix=main_cfc(tseries)
  >> cfc_matrix=main_cfc(tseries,tseries2)
  >> cfc_matrix=main_cfc(tseries,tseries2,fp_range,fa_range,step)
  >> cfc_matrix=main_cfc(tseries,tseries2,fp_range,fa_range,step,window_size,overlap)


- The numerical inputs have to be provided in the order they are shown. 
- Only the input 'tseries' is required. 
- To skip an input simply use the empty array, e.g. cfc_matrix=main_cfc(tseries,[],fp_range,[],step) will use default values for tseries2 (no second time series) and fa_ranage ([20 300]).
- When 'tseries2' is specified, what is being estimated is the modulation of the 'tseries2' signal amplitude from the 'tseries' signal phase. In other words, the function estimates the modulation of tseries2 by tseries.